﻿using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;

namespace WebMiddleware
{
    internal class HttpClientManager
    {
        private static HttpClient? _client;

        public static HttpClient Client => _client ?? (_client = new HttpClient());

        public static void Close()
        {
            _client?.Dispose();
            _client = null;
        }
    }
}
